package books4africa

class Donation {

	Date donationDate
	int bookQty
	int bookQtyFilled
	
    static constraints = {
		donationDate(blank:true)
		bookQty(minSize:1)
		bookQtyFilled(minSiz:1)
    }
	
	static belongsTo = [donor : User, book : Books]
	
	static hasMany = [fulfillment : Fulfillment]
	
	String toString(){
		
		"${donor} - ${book} - ${donationDate}"
	}

}
